import request from '@/utils/request';

// 查询黑名单列表
export function list(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/resourceBlacklist',
		method: 'post',
		data: data,
	});
}

// 新增黑名单
export function add(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/resourceBlacklist/save',
		method: 'post',
		data: data,
	});
}

// 修改黑名单
export function edit(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/resourceBlacklist',
		method: 'put',
		data: data,
	});
}

// 删除黑名单
export function remove(ids: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/resourceBlacklist/delete/' + ids,
		method: 'delete',
	});
}
